<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东登录</title>
    <link rel="stylesheet" href="./CSS/styles.css">
</head>
<body>
    <div class="login-container">
        <div class="login-header">
            <img src="./img/logo-201305-b.png" alt="京东">
        </div>
        <div class="login-box">
            <div class="login-left">
                <h2>京东APP扫码登录</h2>
                <p>打开京东APP点左上角扫一扫</p>
                <img src="./img/jd-icon.png" alt="QR Code">
            </div>
            <div class="login-right">
                
                <span class="login-tab active" data-tab="password">密码登录</span>
                <span class="login-tab" data-tab="sms">短信登录</span>
                
                <!-- 密码登录表单 -->
                <form id="passwordLoginForm" class="login-form active">
                    <input type="text" id="username" placeholder="账号名/手机号/邮箱" required>
                    <input type="password" id="password" placeholder="密码" required>
                    <button type="button" id="loginButton">登录</button>
                </form>
                
                <!-- 短信登录表单 -->
                <form id="smsLoginForm" class="login-form">
                    <input type="text" id="phone" placeholder="请输入手机号" required>
                    <div class="sms-input">
                        <input type="text" id="smsCode" placeholder="请输入验证码" required>
                        <button type="button" id="getSmsCode">获取验证码</button>
                    </div>
                    <button type="button" id="smsLoginButton">登录</button>
                </form>
                
                <div class="other-options">
                    <a href="#">微信登录</a> |
                    <a href="#">QQ登录</a> |
                    <a href="#">忘记密码</a> |
                    <a href="#">立即注册</a>
                </div>
            </div>
        </div>
        <div class="footer">
            <a href="#">关于我们</a> |
            <a href="#">联系我们</a> |
            <a href="#">人才招聘</a> |
            <a href="#">商家入驻</a> |
            <a href="#">广告服务</a> |
            <a href="#">手机京东</a> |
            <a href="#">友情链接</a> |
            <a href="#">销售联盟</a> |
            <a href="#">京东社区</a> |
            <a href="#">京东公益</a>
            <p>Copyright © 2004-2025 京东JD.com 版权所有</p>
        </div>
    </div>

    <script src="./JS/script.js"></script>
</body>
</html>